package com.zbl.zblproject.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/25
 * 地址和城区
 */
@TableName("zbl_region")
public class Region {

    @TableId(type = IdType.AUTO)
    private int regionId;

    private int parentId;

    private String regionName;

    private int regionType;

    private int agencyId;


    public int getRegionId() {
        return regionId;
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public int getRegionType() {
        return regionType;
    }

    public void setRegionType(int regionType) {
        this.regionType = regionType;
    }

    public int getAgencyId() {
        return agencyId;
    }

    public void setAgencyId(int agencyId) {
        this.agencyId = agencyId;
    }

    @Override
    public String toString() {
        return "Region{" +
                "regionId=" + regionId +
                ", parentId=" + parentId +
                ", regionName='" + regionName + '\'' +
                ", regionType=" + regionType +
                ", agencyId=" + agencyId +
                '}';
    }
}
